
/**
 * 采购单状态枚举
 * Created by guzy on 16/10/10.
 */
public enum PurchaseOrderStatus {

    WAIT_VERIFY("草稿"),VERIFYING("待审核"),
    //VERIFY_REJECTED("主管拒绝"),
    VERIFYING_FINANCE("待财审"),
    // VERIFY_FINANCE_REJECTED("财审拒绝"),
    GOODS_NOT_ARRIVED("未到货"),GOODS_PART_ARRIVED("部分到货"),FINISHED("已完成"),GOODS_CLOSED("已关闭");

    PurchaseOrderStatus(String cName){
        this.cName=cName;
    }

    public String cName;

    public static String getCNameFromStatus(String status){
        PurchaseOrderStatus pos=PurchaseOrderStatus.valueOf(status);
        if(status==null){
            return null;
        }
        return pos.cName;
    }
}
